﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AL100.BankApplication.BLL
{
    /// <summary>
    /// Overdrawn account infos.
    /// </summary>
    public class AccountEventArgs : EventArgs
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="AccountEventArgs"/> class.
        /// </summary>
        /// <param name="currentBalance">The current balance.</param>
        /// <param name="authorizedOverdrawn">The authorized overdrawn.</param>
        /// <param name="overdrawnExcess">The overdrawn excess.</param>
        public AccountEventArgs(double currentBalance, double authorizedOverdrawn, double overdrawnExcess)
        {
            CurrentBalance      = currentBalance;
            AuthorizedOverdrawn = authorizedOverdrawn;
            OverdrawnExcess     = overdrawnExcess;
        }

        /// <summary>
        /// Gets the current balance.
        /// </summary>
        public double CurrentBalance        { get; private set; }
        
        /// <summary>
        /// Gets the authorized overdrawn.
        /// </summary>
        public double AuthorizedOverdrawn   { get; private set; }
        
        /// <summary>
        /// Gets the overdrawn excess.
        /// </summary>
        public double OverdrawnExcess       { get; private set; }

    }
}
